package com.sdx.console.content.entity;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ibeetl.admin.core.entity.BaseEntity;
import com.ibeetl.admin.core.util.ValidateConfig;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/* 
* 
* gen by Spring Boot2 Admin 2019-02-20
*/
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
@Data
public class ResContentColumn extends BaseEntity{

    //栏目id
    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    private Integer colId ;
	
    //内容ID
    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    private Integer contentId ;

    //创建时间
    private Date createdTime ;

    //更新时间
    private Date updatedTime ;

    public ResContentColumn(@NotNull(message = "ID不能为空", groups = ValidateConfig.UPDATE.class) Integer colId,
                            @NotNull(message = "ID不能为空", groups = ValidateConfig.UPDATE.class) Integer contentId) {
        this.colId = colId;
        this.contentId = contentId;
    }
}
